package com.niiwoo.civet.trade.dto.refundcallback;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * Created by dell on 2018/2/9.
 */
@Getter
@Setter
public class RepaymentDetailDTO {
    /**
     * 待还本金
     */
    private BigDecimal toRefundCapital = BigDecimal.ZERO;
    /**
     * 待还利息
     */
    private BigDecimal toRefundInterest = BigDecimal.ZERO;
    /**
     * 待还罚息
     */
    private BigDecimal toRefundPenalty = BigDecimal.ZERO;
    /**
     * 待还平台管理费
     */
    private BigDecimal toRefundManageFee = BigDecimal.ZERO;
    /**
     * 待还担保服务费
     */
    private BigDecimal toRefundGuaranteeFee = BigDecimal.ZERO;

    /**
     * 待还总额
     */
    private BigDecimal toRefundTotalAmount;

    /**
     * 需垫付总额
     */
    private BigDecimal toGuaranteeTotalAmount;

    public BigDecimal getToRefundTotalAmount(){
        return toRefundCapital.add(toRefundInterest).add(toRefundPenalty).add(toRefundManageFee).add(toRefundGuaranteeFee);
    }

}
